//
//  MagazineCollectionViewCell.m
//  Jingjing
//
//  Created by Maxwell Rose on 15/11/12.
//  Copyright © 2015年 Mikeshihua. All rights reserved.
//

#import "MagazineCollectionViewCell.h"
#import "MagazineCollectionModel.h"
@implementation MagazineCollectionViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModel:(MagazineCollectionModel *)model{
    NSURL *imgURL = [NSURL URLWithString:[RESOURCE_URL stringByAppendingString:model.frontCover]];
    [_coverImageView sd_setImageWithURL:imgURL placeholderImage:[UIImage imageNamed:@"img_default"]];
    _titleLabel.text = model.title;
    _titleLabel.scrollDuration = model.title.length / 7;
    _titleLabel.animationDelay = 2;
}
@end
